import {defHttp} from '/@/utils/http/axios';
import { useMessage } from "/@/hooks/web/useMessage";

const { createConfirm } = useMessage();

enum Api {
  list = '/attendance/attScheduleSwaprec/list',
  audit='/attendance/attScheduleSwaprec/audit'
}


/**
 * 列表接口
 * @param params
 */
export const list = (params) =>
  defHttp.get({url: Api.list, params});

/**
 * 保存或者更新
 * @param params
 */
export const audit = (params, isUpdate) => {
  return defHttp.post({url: Api.audit, params});
}
